#ifndef _COND_H_
#define _COND_H_

#include "MutexLock.h"
#include "Noncopyable.h"

class Cond : public Noncopyable
{
    public:
        Cond(MutexLock& mutex);
        ~Cond();

        void wait();
        void signal();

    private:
        pthread_cond_t _cond;
        MutexLock& _mutex;
};

#endif
